package oop;

public class Testmain {
    public static void main(String[] args) {
        for (int a = 1; a <= 100; a++) {
            for (int b = 2; b <= a; b++) {
                if (a % b == 0) {
                    break;
                }
                if (a == b) {
                    System.out.println(a + "是素数");
                } else {
                    break;
                }
            }
        }
    }
}